<%--
  Created by IntelliJ IDEA.
  User: stone
  Date: 2022/4/29
  Time: 17:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>文件上传</h1>
<form action="/upload/file" enctype="multipart/form-data" method="post">
    <%--input标签的name属性 → 请求参数名--%>
    <input type="file" name="myfile">
    <input type="submit">
</form>
</body>
</html>
